<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"  %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>头像列表</title>
	</head>
	<body>
		<%
			int i = 0;
		%>
		<s:iterator value="headImgs" var="headImgs">
			<div style="display:inline;width:60px;">
				<table cellpadding="4" cellspacing="0" style="margin:2px;display:inline;text-align:center;border:none;">
					<tr>
						<td>
				<img src="<s:property value="#headImgs.ImgSrc" />" style="margin:0" width=60 height=60 
						onmousemove="parentNode.parentNode.parentNode.style.background = '#AD9A82'"
						onmouseout="parentNode.parentNode.parentNode.style.background = '#fff'"
						onclick="parentNode.parentNode.parentNode.children[1].children[0].children[0].checked = true;
							window.parent.document.headform.pic.src='<s:property value="#headImgs.ImgSrc" />';
							window.parent.document.headform.headId.value='<s:property value="#headImgs.id" />'
							window.parent.document.headform.action='front/modifyImg.action'"/>
						</td>
					</tr>
					<tr>
						<td >
					<input type="radio" name="df" value=<%=i %> style="margin-bottom:0px;" />
						</td>
					</tr>
				</table>
			</div>
			<%
				i++;
				if(i >= 6) {
					i=0;
			%>
				<br />
			<%
				}
			%>
		</s:iterator>
	</body>
</html>
